﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Net.Http;

namespace Company.UI.Code.Base
{
    public class BaseController : Controller
    {
        /// <summary>
        /// 是否为POST方式提交
        /// </summary>
        public Boolean IsPost
        {
            get
            {
                return new HttpMethod(Request.HttpMethod).Equals(HttpMethod.Post);
            }
        }
    }
}
